package com.bw.goods.mvvm.adpter;

import android.view.View;
import android.widget.TextView;

import com.bw.goods.R;
import com.bw.goods.mvvm.model.entity.CategoryEntity;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import org.jetbrains.annotations.NotNull;

public class CategoryLeftAdpter extends BaseQuickAdapter<CategoryEntity.DataBean, BaseViewHolder> {
    public CategoryLeftAdpter() {
        super(R.layout.item_category);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, CategoryEntity.DataBean dataBean) {
        baseViewHolder.setText(R.id.category_item_tv,dataBean.category_name);

    }
}
